package <render>packageName</render>;

import com.beiding.my.common.Vo;
import org.springframework.beans.BeanUtils;
<block v-repeat="item in imports">import <render>item</render>;</block>

public class <render>className</render> implements Vo {

    //历史Be
    private <render>name</render>Be historyBe;

    //当前Be
    private <render>name</render>Be be;

    public void setBe(<render>name</render>Be be) {
        this.be = be;
        if (be != null) {
            if (this.historyBe == null) {
                this.historyBe = new <render>name</render>Be();
            }
            //克隆一份用于reset
            BeanUtils.copyProperties(be, this.historyBe);
        } else {
            this.historyBe = null;
        }
    }

    public void reset() {
        if (this.historyBe != null) {
            BeanUtils.copyProperties(historyBe, be);
        }
    }

    public <render>name</render>Be getBe() {
        return be;
    }

    <block v-repeat="field in fields">
    public <render>field.typeClass</render> get<render>field.hName</render>() {
        if (be == null) {
            return null;
        }
        return be.get<render>field.hName</render>();
    }

    public void set<render>field.hName</render>(<render>field.typeClass</render> v) {
        if (be == null) {
            return;
        }
        be.set<render>field.hName</render>(v);
    }
    </block>

    <block v-repeat="quote in quotes">
    private <render>quote.type.name</render>Vo _quote_<render>quote.name</render>;
    public <render>quote.type.name</render>Vo get<render>quote.hName</render>() {
        return _quote_<render>quote.name</render>;
    }

    public void set<render>quote.hName</render>(<render>quote.type.name</render>Vo b) {
        this._quote_<render>quote.name</render> = b;
    }
    </block>


}
